﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class uc_main_Uc_Menu : System.Web.UI.UserControl
{
    CommonPage cm3 = new CommonPage();
    
    protected void Page_Load(object sender, EventArgs e)
    {
      
            filter.SelectedIndex = int.Parse(filter.Value.ToString()) - 1;
      
    }
    protected void btn_logout_Click(object sender, EventArgs e)
    {
        cm3.Customer = null;
        Response.Redirect(ResolveClientUrl("~/Default.aspx"));
    }
    
    protected void Button1_Click(object sender, EventArgs e)
    {
  //      string tuychon = filter.Value.ToString();
       //string tuychona = dropLoc.SelectedValue.Trim().ToString();

//        Response.Write(tuychon);
    }
    protected void ImageButton2_Click(object sender, ImageClickEventArgs e)
    {

        string tuychonfil = filter.Value.ToString();
        string chuoiguidi = "tim-kiem-all-theo-" + tuychonfil;
        //Response.Redirect(ResolveClientUrl("~/all/") + tuychonfil);
        Response.Redirect(URLHelper.BuildURL(chuoiguidi));
    }
}
